package com.github.aloxc.plugin.restplus.test;

import com.intellij.execution.ExecutionException;
import org.jetbrains.annotations.NotNull;

import java.io.Closeable;
/**
 * @author leero
 */
public interface HttpClientResponseHandlerExecutor extends Closeable {
    /**
     * 执行js脚本
     * @param paramRestResponse
     * @param paramRestClientResponse
     * @param paramString
     * @return
     * @throws ExecutionException
     */
    @NotNull
    HttpResponseExecutionResult execute(@NotNull RestResponse paramRestResponse, @NotNull RestClientResponse paramRestClientResponse,
                                        @NotNull String paramString) throws ExecutionException;

    /**
     * 关闭
     */
    @Override
    void close();
}
